package com.block.product.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.block.common.util.LocalDateUtil;
import com.block.db.entity.ProductPush;
import com.block.db.mapper.ProductPushMapper;
import com.block.product.service.IProductProfitService;
import com.block.product.service.IProductPushService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 商品上架管理 服务实现类
 * </p>
 *
 * @author 
 * @since 2022-07-29
 */
@Service
public class ProductPushServiceImpl extends ServiceImpl<ProductPushMapper, ProductPush> implements IProductPushService {

    @Override
    public List<ProductPush> getProductIdList(String clientType, Integer sceneId, String reqChannelType) {

         String nowTime = LocalDateUtil.getNowDateStr(LocalDateUtil.SIMPLE_TIME);
         String nowDate = LocalDateUtil.getNowDateStr(LocalDateUtil.SIMPLE_GANG_DATE);
         List<ProductPush> productIdList = this.baseMapper.getProductIdList(clientType, sceneId, reqChannelType, nowTime, nowDate);
        return productIdList;
    }
}
